﻿@model OneWeb.ViewModels.ArticleListPageViewModel
@using PagedList.Mvc

@{
    ViewBag.Title = "文章";
}

<div class="row-fluid container"> 
        <ul class="list-group">
            @foreach (var item in Model.Articles)
            {
                <li class="list-group-item photo-big">
                    <div class="one-image">
                        <a href="@Url.Action("details", "article",new { Id = item.Id })" target="_blank">
                                @*<img class="photo-pic avatar" src="@item.Author.WebUrl" alt="@item.Title 作者/@item.Author.Name">*@
                                <img src="@item.ImageUrl" />
                            </a>
                        <a href="@Url.Action("details", "article",new { Id = item.Id })" target="_blank" title="@item.Title 作者/@item.Author.Name"></a>
                    </div>

                    <a href="@Url.Action("details", "article",new { Id = item.Id })" style="text-decoration:none" target="_blank">
                        <h4>@item.Title 作者/@item.Author.Name</h4>
                    </a>

                    @*<div class="meta">
                            <span class="meta-column"><i></i>TAG：</span>
                            <span class="delim"></span>
                            <span class="meta-data">@item.HpMakettime</span>
                        </div>*@
                    <p>@item.GuideWord</p>
                </li>
            }
        </ul> 
</div>
@Html.PagedListPager(Model.Articles, page => Url.Action("Index",
    new { page, sortOrder = ViewBag.CurrentSort, currentFilter = ViewBag.CurrentFilter }))
Page @(Model.Articles.PageCount < Model.Articles.PageNumber ? 0 : Model.Articles.PageNumber) of @Model.Articles.PageCount